package org.dreamwork.tools.code.analyzer;

import org.dreamwork.injection.AInjectionContext;
import org.dreamwork.injection.IObjectContext;
import org.dreamwork.injection.ObjectContextFactory;

@AInjectionContext (
        scanPackages = {
                "org.dreamwork.tools.code.analyzer.core.service.impl",
                "org.dreamwork.tools.code.analyzer.core.managed"
        },
        config = "../conf/code-analyzer.conf"
)
public class ContextMain {
    public static void main (String[] args) {
        launch (args);
    }

    public static IObjectContext launch (String... args) {
        try {
            return ObjectContextFactory.start (ContextMain.class, args);
        } catch (Exception ex) {
            ex.printStackTrace ();
            return null;
        }
    }
}